﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Users.IDomain
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public interface IUserInfo : Shared.Contracts.IDependency
    {
        /// <summary>
        /// 根据登录信息获取用户数据
        /// </summary>
        /// <param name="loginName"></param>
        /// <returns>
        /// Item1 : 是否成功登录
        /// Item2 : 错误信息
        /// Item3 : 登录成功的User.Id
        /// </returns>
        Task<(bool, string, string)> Login(Users.DTO.User loginInfo);
        /// <summary>
        /// 根据用户ID获取用户登录信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Users.Entity.Quick_Users> GetUserInfo(string id);
        /// <summary>
        /// 根据用户ID获取用户登录信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<(bool, string)> UpdatePwd(DTO.UserUpdatePwd userUpdatePwd);
    }
}
